package cn.wit.test;

public class Book {
	private int serial;
	private String name;
	private double price;
	
	public Book(int serial,String name,double price) {
		this.name=name;
		this.price=price;
		this.serial=serial;
	}

	@Override
	public String toString() {
		return "Book [serial=" + serial + ", name=" + name + ", price=" + price + "]";
	}

	public int getSerial() {
		return serial;
	}

	public void setSerial(int serial) {
		this.serial = serial;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

}
